package com.geeguo.ebuilder.operation.business.tenant.datasourceinfo.service;

import com.geeguo.ebuilder.core.common.model.vo.PageListVO;
import com.geeguo.ebuilder.operation.business.tenant.datasourceinfo.model.DataSourceInfoEntity;
import com.geeguo.ebuilder.operation.business.tenant.datasourceinfo.model.DataSourceInfoQuery;
import com.geeguo.ebuilder.operation.business.tenant.datasourceinfo.model.DataSourceInfoCO;
import com.geeguo.ebuilder.operation.business.tenant.datasourceinfo.model.DataSourceInfoVO;

import java.util.List;

public interface DataSourceInfoService {

    PageListVO<DataSourceInfoVO> list(DataSourceInfoQuery query);
    List<DataSourceInfoVO> listAll();
    
    DataSourceInfoVO get(String id);
    DataSourceInfoCO getCached(String id);
    
    boolean save(DataSourceInfoEntity entity);
    
    boolean update(DataSourceInfoEntity current, DataSourceInfoEntity old);
    
    boolean remove(String id);
}
